package jaran.poem.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Scanner;


public class database {
    public static void main(String[] args) throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        String url="jdbc:mysql://localhost:3306/test?useSSL=false";
        String username="root";
        String password="root";
        DriverManager .getConnection(url,username,password);
        System.out.println("账号：");
        Scanner user=new Scanner(System.in);
        System.out.println("密码：");
        Scanner pass=new Scanner(System.in);

        String sql="select id from `user` where" +
                "password=MD5('" +pass+
                "') and username='" +user+
                "'";

    }
}